<?php
use yii\widgets\ActiveForm;

?>

<?php $form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]) ?>

    <?= $form->field($model, 'imageFile')->fileInput() ?>
    姓名:<?= Html::input('text', 'n_name')?>
    价格:<?= Html::input('text', 'n_price')?>
    <button>添加</button>

<?php ActiveForm::end() ?>
